package com.zg.datapush.req;

import com.zg.datapush.vo.DpFieldMappingVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 字段映射批量保存请求
 * @author zg
 */
@Data
@ApiModel(value = "字段映射批量保存请求", description = "字段映射批量保存请求")
public class DpFieldMappingBatchSaveReq {

    @NotNull(message = "任务ID不能为空")
    @ApiModelProperty(value = "任务ID", required = true)
    private Long taskId;

    @NotEmpty(message = "字段映射列表不能为空")
    @ApiModelProperty(value = "字段映射列表", required = true)
    private List<DpFieldMappingVo> mappings;
}
